﻿@using PersonBlog.Model
@using PersonBlog.Models

@model UserModel
@{
    Layout = null;
    Result r = ViewBag.Result == null ? new Result(): ViewBag.Result;
}

<!DOCTYPE HTML>
<html>
<head>
    <title>登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <!-- Bootstrap Core CSS -->
    <link href="~/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
    <!-- Custom CSS -->
    <link href="~/css/style.css" rel='stylesheet' type='text/css' />
    <link href="~/css/font-awesome.css" rel="stylesheet">
    <!-- jQuery -->
    <script src="~/js/jquery.min.js"></script>
    <script src="~/js/layer/layer.js"></script>
    <!----webfonts--->
    @*<link href='http://fonts.useso.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet' type='text/css'>*@
    <!---//webfonts--->
    <!-- Bootstrap Core JavaScript -->
    <script src="~/js/bootstrap.min.js"></script>

    <script>
        $(document).ready(function ()
        {
            var msg = $("#msg").val();
            if(msg!="")
            {
                layer.msg(msg);
            }
        })
    </script>
</head>
<body id="login">
    <div class="login-logo">
        <a href="index.html"><img src="~/images/logo.png" alt="" width="20%" height="20%" /></a>
    </div>
    <div class="app-cam">
            @using (Html.BeginForm("Index", "Login", FormMethod.Post))
            {
                @Html.TextBoxFor(m=>m.LoginName,new { @class="text",@placeholder="Username"})
                @Html.TextBoxFor(m => m.LoginPwd, new { @placeholder = "Password",@type="password" })
               
                <div class="submit"><input type="submit" value="登   录"></div>
             
                <ul class="new">
                    <li class="new_left"><p><a href="@Url.Action("ForgotPwd","Login")">忘记密码 ?</a></p></li>
                    <li class="new_right"><p class="sign">新用户 ?<a href="@Url.Action("Regeister","Login")">注册</a></p></li>
                    <div class="clearfix"></div>
                </ul>

                <input id="msg" type="hidden" value="@r.Message" />
            }
    </div>
</body>
</html>

